﻿// Important
// Should chagne value in DfRobotLcdShield.cs Library as well!!!
//
//#define CQ_FRK_FM3
//#define CQFM3DUINO
//#define CQ_FRK_RX62N
//#define CQ_FRK_NXP_ARM
//#define KS_MB9BF506
//#define KS_MB9BF568
#define GR_SAKURA

using System;
using System.Threading;
using Microsoft.SPOT;

namespace DfRobotLcdShield
{
    public class Program
    {
        public static void Main()
        {
            var lcdshield = new DfRobotLcdShield();
            lcdshield.SetCursorPosition(0, 0);
            lcdshield.Write("DF ROBOT Shield");
            lcdshield.SetCursorPosition(0, 1);
#if CQ_FRK_FM3
            lcdshield.Write("FM3 MB9BF618T  ");
#endif
#if CQFM3DUINO
            lcdshield.Write("FM3 MB9BF618T  ");
#endif
#if KS_MB9BF568
            lcdshield.Write("FM4 MB9BF568R  ");
#endif
#if GR_SAKURA
            lcdshield.Write("RX63N GR-SAKURA");
#endif
            //lcdshield.Write("v1.0   ready...");

            while (true)
            {
                Thread.Sleep(100);
            }
            //while (true)
            //{
            //    lcdshield.SetCursorPosition(7, 1);
            //    string buttonName = DfRobotLcdShield.ButtonNames[(int)lcdshield.ButtonState];
            //    while (buttonName.Length < 9)
            //        buttonName += " ";
            //    lcdshield.Write(buttonName);
            //
            //    Thread.Sleep(100);
            //}
        }
    }
}
